@boxSize : 30;
@divSize : 20px;

@font-face {
    font-family: 'iconfont';
    /* Project id 2942828 */
    src: url('../font/ali/iconfont.woff2') format('woff2'),
        url('../font/ali/iconfont.woff') format('woff'),
        url('../font/ali/iconfont.ttf') format('truetype');
}

.gameBox {
    border: 1px solid #000;
}

.iconfont {
    font-family: "iconfont" !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    box-sizing: border-box;
}

.box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 800px;
    left: 0;
    right: 0;
    margin: 0 auto;

    .prompt {
        position: absolute;
        width: 800px;
        height: 600px;
        background-color: rgb(116, 116, 116);
        opacity: 0.2;
        top: 62px;
        z-index: 10;
        text-align: center;
        line-height: 600px;
        font-size: 100px;
        display: none;

    }

    .title {
        width: 100%;
        text-align: center;
        font-size: 30px;
        font-weight: bold;
        line-height: 50px;
        background-color: rgb(137, 237, 255);
        margin-bottom: 10px;
    }

    .content {
        display: flex;

        .gameBox {
            display: flex;

            .col>div {
                width: @divSize;
                height: @divSize;
            }

            .snakeBodyTop {
                background-image: url(../img/top.jpg);
            }

            .snakeBodyLeft {
                background-image: url(../img/top.jpg);
                transform: rotate(90deg);
            }

            .snakeBodyTopLeft {
                background-image: url(../img/topLeft.jpg);
            }

            .snakeBodyTopRight {
                background-image: url(../img/topLeft.jpg);
                transform: rotate(90deg);

            }

            .snakeBodyBottomLeft {
                background-image: url(../img/topLeft.jpg);
                transform: rotate(270deg);
            }

            .snakeBodyBottomRight {
                background-image: url(../img/topLeft.jpg);
                transform: rotate(180deg);
            }

            .snakeHeadTop {
                background-image: url(../img/head.jpg);

                // background-color: rgb(25, 110, 36);
            }

            .snakeHeadBottom {
                background-image: url(../img/head.jpg);
                transform: rotate(180deg);

                // background-color: rgb(25, 110, 36);
            }

            .snakeHeadLeft {
                background-image: url(../img/head.jpg);
                transform: rotate(270deg);

                // background-color: rgb(25, 110, 36);
            }

            .snakeHeadRight {
                background-image: url(../img/head.jpg);
                transform: rotate(90deg);

                // background-color: rgb(25, 110, 36);
            }

            .snakeTailTop {
                background-image: url(../img/tail.jpg);
                transform: rotate(180deg);

                // background-color: rgb(25, 110, 36);
            }

            .snakeTailBottom {
                background-image: url(../img/tail.jpg);
                // transform: rotate(180deg);

                // background-color: rgb(25, 110, 36);
            }

            .snakeTailLeft {
                background-image: url(../img/tail.jpg);
                transform: rotate(90deg);

                // background-color: rgb(25, 110, 36);
            }

            .snakeTailRight {
                background-image: url(../img/tail.jpg);
                transform: rotate(270deg);

                // background-color: rgb(25, 110, 36);
            }

            .food {
                // background-color: #abc;
                background-image: url(../img/mouse.png);
                background-size: cover;
            }

            .wall {
                position: relative;
                // background-color: rgb(70, 70, 70);
                color: #B42D1D;

                // text-align: right;
                // text-align: center;
                // line-height: 20px;
                span {
                    display: block;
                    position: absolute;
                    top: -2.5px;
                    left: -2.5px;
                    font-size: 25px;
                }
            }
        }

        .right {
            box-sizing: border-box;
            width: 200px;
            display: flex;
            flex-direction: column;
            border: 4px double #000;
            padding: 0 10px;
            justify-content: space-between;

            .rightTop {
                display: flex;
                flex-direction: column;

                a {
                    height: 30px;
                    line-height: 30px;
                    text-align: center;
                    border-bottom: 3px double #000;
                    color: #000;
                }

                .tips {
                    display: flex;
                    flex-direction: column;

                    .operate {
                        font-size: 20px;
                        padding: 10px 0;
                    }

                    .tblr,
                    .wasd {
                        display: flex;
                        flex-direction: column;

                        .up {
                            display: flex;
                            justify-content: center;

                            div {
                                border: 1px solid #000;
                                width: 20px;
                                height: 20px;
                                text-align: center;
                            }
                        }

                        .down {
                            display: flex;

                            justify-content: center;

                            div {
                                border: 1px solid #000;
                                width: 20px;
                                height: 20px;
                                text-align: center;
                            }
                        }

                    }

                    .timeOut {
                        display: flex;
                        text-align: center;
                        padding: 0 10px;
                        justify-content: space-between;

                        .space {
                            border: 1px solid #000;
                            width: 100px;
                            height: 20px;
                        }
                    }
                }
            }

            .rightBottom {

                .map,
                .speed {
                    display: flex;
                    flex-direction: column;
                    border-bottom: 3px double #000;

                    .choiceTite {
                        font-size: 20px;
                        padding: 10px 0;
                    }

                    .choice {
                        font-size: 16px;
                        display: flex;
                        flex-wrap: wrap;

                        div {
                            width: 50%;
                            margin: 8px 0;
                            text-align: center;
                            cursor: pointer;

                        }
                    }

                    .on {
                        background-color: #abc;
                    }
                }

                .map {
                    border-top: 3px double #000;

                }
            }

            .res {
                font-size: 20px;
                padding: 15px 0;
                border-bottom: 3px double #000;

            }

            .btns {
                margin: 15px 0;
                display: flex;
                justify-content: space-between;

                div {
                    box-sizing: border-box;
                    width: 50px;
                    height: 40px;
                    background-color: #E95151;
                    color: #fff;
                    border: none;
                    text-align: center;
                    line-height: 40px;
                    border-radius: 10%;
                    cursor: pointer;
                    z-index: 15;
                }
            }
        }

    }


}

// .range {
//     position: absolute;
//     width: (@boxSize - 2) * @divSize;
//     height: (@boxSize - 2) * @divSize;
//     top: @divSize;
//     left: @divSize;
//     border: 1px solid red;
// }

form {
    display: none;
    border: 1px solid #abc;
    position: absolute;
    top: 200px;
    left: 0;
    right: 0;
    margin: auto;
    width: 200px;
    // height: 200px;
    flex-direction: column;
    background-color: #fff;
    padding: 20px;
    border-radius: 10%;

    .name {
        padding: 8px 0;
    }

    button {
        margin-top: 15px;
        width: 50px;
    }

    .btn {
        display: flex;
        height: 25px;
        justify-content: space-between;
        // input{
        //     line-height: 20px;
        // }
    }

    &>input:first-of-type {
        height: 23px;
        border: 1px solid #767676;
    }

    &>input:not(:first-of-type) {
        height: 23px;

        border: 1px solid #D1D1D1;
        background-color: #F8F8F8;
    }
}